class Phone:
    IMEI = None
    producer = "Huawei"

    def call_by_5g(self):
        print("使用5g网络进行通话")


# 定义子类，复写父类成员
class MyPhone(Phone):
    producer = "China"  # 复写父类的成员属性

    def call_by_5g(self):
        print("开启CPU单核模型，确保通话时省电")

        # 方式1
        # print(f"父类的厂商是:{Phone.producer}")
        # Phone.call_by_5g(self)
        # print("使用5g进行通话")
        # 方式2
        print(f"父类的厂商是:{super().producer}")
        super().call_by_5g()



myphone = MyPhone()
print(myphone.producer)
myphone.call_by_5g()